package com.ruoyi.carUser.service.imp;

import com.ruoyi.carUser.domain.UserCoupon;
import com.ruoyi.carUser.mapper.CouponUserMapper;
import com.ruoyi.carUser.service.UserCouponService;
import com.ruoyi.system.api.domain.Coupons;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class UserCouponServiceImpl implements UserCouponService {
    @Autowired
    private CouponUserMapper couponUserMapper;

    @Override
    public List<UserCoupon> listUserCoupons(Long userId) {
        return  couponUserMapper.list(userId);
    }
}
